import {
	createApp
} from 'vue'
import App from './App.vue'
//引入arco-design的组件和样式
import ArcoVue from '@arco-design/web-vue';
import '@arco-design/web-vue/dist/arco.css';
//引入arco-design额外的的icon图标
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import router from './router';
//引入arco-design的国际化组件
import enUS from '@arco-design/web-vue/es/locale/lang/en-us';
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
//引入vue-loading-overlay组件的样式
import 'vue-loading-overlay/dist/vue-loading.css';
//引入elementui-plus的组件和样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入elementui-plus的部分图标
import {
	User,
	Avatar
} from '@element-plus/icons-vue';
//引入i18n
import VueI18n from '@/i18n/index.js';
//静态的url等配置
import index from '@/constant/index/imgUrl.js';
import user from '@/constant/user/imgUrl.js';
//更改index页面中轮播图的dot栏位置
import '@/assets/index/css/index.css';

const app = createApp(App);
app.use(ArcoVue);
app.use(ArcoVueIcon);
app.use(ElementPlus);
app.use(VueI18n);
//定义组件，第一个参数为调用名
app.component('User', User)
	.component('Avatar', Avatar);
app.use(router);
//全局注册
// app.config.globalProperties
app.config.globalProperties.$index = index;
app.config.globalProperties.$user = user;
app.mount('#app');